import time
import pytest
from selenium import webdriver
from Page2.Page import Page
from  common import *
class Test_case():
    def setup_method(self):
        self.driver=webdriver.Edge()
        self.driver.maximize_window()

    def teardown_method(self):
        time.sleep(10)
        self.driver.quit()
    @pytest.mark.parametrize('data',get_yaml())
    def test_jiuxian(self,data):
        po=Page(self.driver)
        po.jiuxian_luoji(data.get('username'),data.get('password'))


if __name__ == '__main__':
    pytest.main()
